package com.kqb.sgdrug.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kqb.sgdrug.service.DrugService;
import com.kqb.sgdrug.model.Drug;
import com.kqb.sgdrug.mapper.DrugMapper;
import jakarta.annotation.Resource;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

/**
 * @author D
 * @description 针对表【t_drug(药品表，用于存储具体药品的信息和库存状态)】的数据库操作Service实现
 * @createDate 2025-06-24 20:46:07
 */
@Service
public class DrugServiceImpl extends ServiceImpl<DrugMapper, Drug>
        implements DrugService {
    public static final String CACHE_NAME = " drug";
    @Resource
    private ApplicationContext applicationContext;

    @Override
    public String getCacheName() {
        return CACHE_NAME;
    }

    @Override
    public ApplicationContext getApplicationContext() {
        return applicationContext;
    }
}




